import flash.net.NetConnection;


public class DataService 
{
	private var _AMFGatewayLocation:String;
	private var _gateway:NetConnection;
	
	function DataService()
	{
		this._AMFGatewayLocation = "http://localhost/amfphp/gateway.php";
		this._gateway = new NetConnection();
		//this._gateway.objectEncoding = ObjectEncoding.AMF3; //set object encoding in amf
		this._gateway.connect(this._AMFGatewayLocation);
	}
	public function getGateway():NetConnection
	{
		return this._gateway;
	}
	public function getUsernameInput()
	{
		
	}
}